]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/scroll-view: Deprecate {v,h}scroll properties
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Nov 2023 12:53:38 +0000 (13:53 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 18 Nov 2023 18:00:43 +0000 (18:00 +0000)
We have better replacements now, so we'll eventually want to stop
exposing the internal scroll bar children.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>

src/st/st-scroll-view.c
src/st/st-scroll-view.h

index 2a2f19d388fdfc6723e5b0cb277f9a47cfabdb2b..e43d1cd1c05475c5681d67a8c13ff315bdbb1e0c 100644 (file)
@@ -882,7 +882,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
                          "StScrollBar",
                          "Horizontal scroll indicator",
                          ST_TYPE_SCROLL_BAR,
-                         ST_PARAM_READABLE);
+                         ST_PARAM_READABLE | G_PARAM_DEPRECATED);
 
   /**
    * StScrollView:vscroll:
@@ -894,7 +894,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
                          "StScrollBar",
                          "Vertical scroll indicator",
                          ST_TYPE_SCROLL_BAR,
-                         ST_PARAM_READABLE);
+                         ST_PARAM_READABLE | G_PARAM_DEPRECATED);
 
   /**
    * StScrollView:hadjustment:
index 9d300a402e0dc6a4d13083522ee7a342de35d286..64340fbd541a7fb1c7530f9446aac34f619fcc26 100644 (file)
@@ -53,7 +53,9 @@ StScrollable *st_scroll_view_get_child           (StScrollView *scroll);
 void          st_scroll_view_set_child           (StScrollView *scroll,
                                                   StScrollable *child);
 
+G_DEPRECATED
 ClutterActor *st_scroll_view_get_hscroll_bar     (StScrollView *scroll);
+G_DEPRECATED
 ClutterActor *st_scroll_view_get_vscroll_bar     (StScrollView *scroll);
 
 StAdjustment *st_scroll_view_get_hadjustment     (StScrollView *scroll);